<?php
$root_path = dirname(__FILE__); 
require_once $root_path . '/siteroot.php';
require_once PATH_NAME . '/controllers/users/users.php';
require_once PATH_NAME . '/includes/access.php';
$access = new Access();
$userController = new usersController();
if (isset($_POST['task'])){
	$task = $_POST['task'];
	$id = $_POST['id']?$_POST['id']:0;
	switch($task){
		case 'saveCustomer':
			$userController->saveRegCustomer($_POST);
		break;
		case 'saveContract':
			$userController->saveRegContract($_POST);
		break;
	}
}
?>